import React from 'react'
import './App.less'
import { Route, Switch, BrowserRouter, Redirect } from 'react-router-dom'

import Login from './pages/Login/login'
import Admin from './pages/Admin/admin'

function App() {
  return (
    <BrowserRouter>
      <Switch>
        <Route path="/login" component={Login} />
        <Route path="/admin" component={Admin} />
        <Redirect to="/login" />
      </Switch>
    </BrowserRouter>
  );
}

export default App;
